<template>
  <div id="app">
      <router-view/>
  </div>
</template>
<script>
    import { mapState } from 'vuex'
    export default {
        name: 'app',
        methods:{
          generateUUID() {
            var d = new Date().getTime();
            var uuid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
              /[xy]/g,
              function(c) {
                var r = ((d + Math.random() * 16) % 16) | 0;
                d = Math.floor(d / 16);
                return (c == "x" ? r : (r & 0x3) | 0x8).toString(16);
              }
            );
            localStorage.setItem("uuid", uuid);
          },
        },
        mounted() {
          // this.getWeatherRecommend();
          this.generateUUID();
          //必须这样写，否则循环不生效
          // this.isNotice();
          // setInterval(this.isNotice, 60000);
          //加个延时，等待plus初始化成功
          // setTimeout(this.judgePlatform, 1000);
          // setTimeout(this.initJiBu, 2000);
          // setTimeout(this.playNotice, 3000);
        }
    }
</script>
<style lang="scss">
@import "./style/reset.scss";
@import "./style/public.scss";
#app {
  font-family: 'Microsoft Yahei';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #000;
  background:#fff;
  height:100%;
  .main-footer{
    height:rem(120);
  }
  .activeClass{
    .yd-tabbar-icon{
      color:$defaultcolor;
    }
    .yd-tabbar-txt{
      color:$defaultcolor;
    }
  }
  .tabbarItem{
    font-size:rem(24);
  }
  &>.yd-scrollview:after{
    height:0;
  }
}
</style>
